#include "Stdafx.h"

using namespace IceCore;

void IceCore::SRand(udword seed)
{
	srand(seed);
}

udword IceCore::Rand()
{
	return rand();
}

static BasicRandom gRandomGenerator(42);

udword IceCore::GetRandomIndex(udword max_index)
{
	udword Index = gRandomGenerator.Randomize();
	return Index % max_index;
}
